import { DELETE, GET, POST } from '../axios.config.js'

const base = window.config.ip
const projectName = '/business'

// 新增判定算法
export const saveAlgorithmApi = p => POST(`${base}${projectName}/ZcAlgorithmManage/saveAlgorithm`, p)

// 编辑判定算法
export const editAlgorithmApi = p => POST(`${base}${projectName}/ZcAlgorithmManage/editAlgorithm`, p)

// 获取判定算法列表
export const listAlgorithmPagesApi = p => GET(`${base}${projectName}/ZcAlgorithmManage/listAlgorithmPages`, p)

// 获取判定算法详情
export const getAlgorithmDetailApi = p => GET(`${base}${projectName}/ZcAlgorithmManage/getAlgorithmDetail`, p)

// 删除判定算法
export const deleteAlgorithmApi = id => DELETE(`${base}${projectName}/ZcAlgorithmManage/deleteAlgorithm?id=${id}`)
